Skip to content

feat(i18n): extract en translations — context/lib/misc#1251

Merged
src-opn merged 3 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-4
Apr 3, 2026
Merged

feat(i18n): extract en translations — context/lib/misc#1251
src-opn merged 3 commits intodifferent-ai:devfrom
johnnyshields:i18n-conversion-4

Conversation

@johnnyshields
Copy link
Copy Markdown
Contributor

@johnnyshields johnnyshields commented Mar 31, 2026

Summary

  • Extract hardcoded English strings to i18n keys for context, lib, and misc components
  • Files: automations.ts (context), providers/store.ts, shared-bundles.ts, mcp-auth-modal, onboarding-workspace-selector, question-modal
  • ~82 new en.ts translation keys added
  • Adds params interpolation support to t() function in i18n/index.ts

What changed

  • providers/store.ts — all error/status messages (auth failed, rate limit, provider errors with {provider} interpolation)
  • shared-bundles.ts — titles, descriptions, validation errors (invalid_url, url_must_be_https)
  • automations.ts (context) — server status messages, validation errors
  • mcp-auth-modal — auth flow strings (already_connected, authorization link, timeout)
  • question-modal — counter, navigation, submit/next buttons
  • LLM prompt templates intentionally left as-is (AI prompts, not UI strings)

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-landing Ready Ready Preview, Comment, Open in v0 Apr 3, 2026 5:22pm

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 31, 2026

@johnnyshields is attempting to deploy a commit to the Different AI Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

@johnnyshields
Copy link
Copy Markdown
Contributor Author

@benjaminshafii I've raised 4 I18n PRs with the intention of first converting keys to EN, then translating for all languages (previously I handled the Japanese I18n PR). If you can help merge I'll resolve conflicts as each PR is merged, then when all 4 are done I'll handle the other languages. LMK, thanks!

@src-opn
Copy link
Copy Markdown
Collaborator

src-opn commented Apr 1, 2026

same same, plz rebase

@johnnyshields
Copy link
Copy Markdown
Contributor Author

Rebased, please merge.

johnnyshields and others added 2 commits April 4, 2026 00:08
Extract hardcoded English strings to i18n keys for:
- automations context, providers store, shared-bundles
- mcp-auth-modal, onboarding-workspace-selector, question-modal

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix missed strings not covered by reference diff:
- automations: schedule_required, prompt_required, prompt_empty,
  server_unavailable in deleteScheduledJob, failed_to_load in local block,
  provider_id_required (2 missed instances in store.ts)
- mcp-auth-modal: request_timed_out
- question-modal: Submit/Next button labels (common.submit, common.next)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@johnnyshields
Copy link
Copy Markdown
Contributor Author

Please merge!

@src-opn src-opn merged commit c349413 into different-ai:dev Apr 3, 2026
9 of 13 checks passed
benjaminshafii added a commit that referenced this pull request Apr 4, 2026
benjaminshafii added a commit that referenced this pull request Apr 4, 2026
* Revert "fix(i18n/zh): cleanups to Chinese translations (#1341)"

This reverts commit 03ee1f2.

* Revert "feat(i18n): add Thai language + missing translations for all other locales (#1339)"

This reverts commit db0f94e.

* Revert "feat(i18n): extract en translations — session area (#1249)"

This reverts commit 3271af4.

* Revert "feat(i18n): extract en translations — pages (#1250)"

This reverts commit e006aca.

* Revert "feat(i18n): extract en translations — context/lib/misc (#1251)"

This reverts commit c349413.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants